1
<?xml version=
"1.0" encoding=
"utf-8"?>
2 <xs:schema xmlns:
tns=
"http://dev.virtualearth.net/webservices/v1/common" elementFormDefault=
"qualified" targetNamespace=
"http://dev.virtualearth.net/webservices/v1/common" xmlns:
xs=
"http://www.w3.org/2001/XMLSchema">
3 <xs:import schemaLocation=
"http://dev.virtualearth.net/webservices/v1/metadata/geocodeservice/GeocodeService4.xsd" namespace=
"http://schemas.microsoft.com/2003/10/Serialization/" />
4 <xs:import schemaLocation=
"http://dev.virtualearth.net/webservices/v1/metadata/geocodeservice/GeocodeService3.xsd" namespace=
"http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
5 <xs:complexType name=
"RequestBase">
7 <xs:element minOccurs=
"0" name=
"Credentials" nillable=
"true" type=
"tns:Credentials" />
8 <xs:element minOccurs=
"0" name=
"Culture" nillable=
"true" type=
"xs:string" />
9 <xs:element minOccurs=
"0" name=
"ExecutionOptions" nillable=
"true" type=
"tns:ExecutionOptions" />
10 <xs:element minOccurs=
"0" name=
"UserProfile" nillable=
"true" type=
"tns:UserProfile" />
13 <xs:element name=
"RequestBase" nillable=
"true" type=
"tns:RequestBase" />
14 <xs:complexType name=
"Credentials">
16 <xs:element minOccurs=
"0" name=
"ApplicationId" nillable=
"true" type=
"xs:string" />
17 <xs:element minOccurs=
"0" name=
"Token" nillable=
"true" type=
"xs:string" />
20 <xs:element name=
"Credentials" nillable=
"true" type=
"tns:Credentials" />
21 <xs:complexType name=
"ExecutionOptions">
23 <xs:element minOccurs=
"0" name=
"SuppressFaults" type=
"xs:boolean" />
26 <xs:element name=
"ExecutionOptions" nillable=
"true" type=
"tns:ExecutionOptions" />
27 <xs:complexType name=
"UserProfile">
29 <xs:element minOccurs=
"0" name=
"CurrentHeading" nillable=
"true" type=
"tns:Heading" />
30 <xs:element minOccurs=
"0" name=
"CurrentLocation" nillable=
"true" type=
"tns:UserLocation" />
31 <xs:element minOccurs=
"0" name=
"DeviceType" type=
"tns:DeviceType" />
32 <xs:element minOccurs=
"0" name=
"DistanceUnit" type=
"tns:DistanceUnit" />
33 <xs:element minOccurs=
"0" name=
"IPAddress" nillable=
"true" type=
"xs:string" />
34 <xs:element minOccurs=
"0" name=
"MapView" nillable=
"true" type=
"tns:ShapeBase" />
35 <xs:element minOccurs=
"0" name=
"ScreenSize" nillable=
"true" type=
"tns:SizeOfint" />
38 <xs:element name=
"UserProfile" nillable=
"true" type=
"tns:UserProfile" />
39 <xs:complexType name=
"Heading">
41 <xs:element minOccurs=
"0" name=
"Orientation" type=
"xs:double" />
44 <xs:element name=
"Heading" nillable=
"true" type=
"tns:Heading" />
45 <xs:complexType name=
"UserLocation">
46 <xs:complexContent mixed=
"false">
47 <xs:extension base=
"tns:Location">
49 <xs:element minOccurs=
"0" name=
"Confidence" type=
"tns:Confidence" />
54 <xs:element name=
"UserLocation" nillable=
"true" type=
"tns:UserLocation" />
55 <xs:complexType name=
"Location">
57 <xs:element minOccurs=
"0" name=
"Altitude" type=
"xs:double" />
58 <xs:element minOccurs=
"0" name=
"Latitude" type=
"xs:double" />
59 <xs:element minOccurs=
"0" name=
"Longitude" type=
"xs:double" />
62 <xs:element name=
"Location" nillable=
"true" type=
"tns:Location" />
63 <xs:complexType name=
"GeocodeLocation">
64 <xs:complexContent mixed=
"false">
65 <xs:extension base=
"tns:Location">
67 <xs:element minOccurs=
"0" name=
"CalculationMethod" nillable=
"true" type=
"xs:string" />
72 <xs:element name=
"GeocodeLocation" nillable=
"true" type=
"tns:GeocodeLocation" />
73 <xs:simpleType name=
"Confidence">
74 <xs:restriction base=
"xs:string">
75 <xs:enumeration value=
"High" />
76 <xs:enumeration value=
"Medium" />
77 <xs:enumeration value=
"Low" />
80 <xs:element name=
"Confidence" nillable=
"true" type=
"tns:Confidence" />
81 <xs:simpleType name=
"DeviceType">
82 <xs:restriction base=
"xs:string">
83 <xs:enumeration value=
"Desktop" />
84 <xs:enumeration value=
"Mobile" />
87 <xs:element name=
"DeviceType" nillable=
"true" type=
"tns:DeviceType" />
88 <xs:simpleType name=
"DistanceUnit">
89 <xs:restriction base=
"xs:string">
90 <xs:enumeration value=
"Kilometer" />
91 <xs:enumeration value=
"Mile" />
94 <xs:element name=
"DistanceUnit" nillable=
"true" type=
"tns:DistanceUnit" />
95 <xs:complexType name=
"ShapeBase">
98 <xs:element name=
"ShapeBase" nillable=
"true" type=
"tns:ShapeBase" />
99 <xs:complexType name=
"Rectangle">
100 <xs:complexContent mixed=
"false">
101 <xs:extension base=
"tns:ShapeBase">
103 <xs:element minOccurs=
"0" name=
"Northeast" nillable=
"true" type=
"tns:Location" />
104 <xs:element minOccurs=
"0" name=
"Southwest" nillable=
"true" type=
"tns:Location" />
109 <xs:element name=
"Rectangle" nillable=
"true" type=
"tns:Rectangle" />
110 <xs:complexType name=
"Circle">
111 <xs:complexContent mixed=
"false">
112 <xs:extension base=
"tns:ShapeBase">
114 <xs:element minOccurs=
"0" name=
"Center" nillable=
"true" type=
"tns:Location" />
115 <xs:element minOccurs=
"0" name=
"DistanceUnit" type=
"tns:DistanceUnit" />
116 <xs:element minOccurs=
"0" name=
"Radius" type=
"xs:double" />
121 <xs:element name=
"Circle" nillable=
"true" type=
"tns:Circle" />
122 <xs:complexType name=
"Polygon">
123 <xs:complexContent mixed=
"false">
124 <xs:extension base=
"tns:ShapeBase">
126 <xs:element minOccurs=
"0" name=
"Vertices" nillable=
"true" type=
"tns:ArrayOfLocation" />
131 <xs:element name=
"Polygon" nillable=
"true" type=
"tns:Polygon" />
132 <xs:complexType name=
"ArrayOfLocation">
134 <xs:element minOccurs=
"0" maxOccurs=
"unbounded" name=
"Location" nillable=
"true" type=
"tns:Location" />
137 <xs:element name=
"ArrayOfLocation" nillable=
"true" type=
"tns:ArrayOfLocation" />
138 <xs:complexType name=
"SizeOfint">
141 <GenericType Name=
"SizeOf{0}{#}" Namespace=
"http://dev.virtualearth.net/webservices/v1/common" xmlns=
"http://schemas.microsoft.com/2003/10/Serialization/">
142 <GenericParameter Name=
"int" Namespace=
"http://www.w3.org/2001/XMLSchema" />
147 <xs:element minOccurs=
"0" name=
"Height" type=
"xs:int" />
148 <xs:element minOccurs=
"0" name=
"Width" type=
"xs:int" />
151 <xs:element name=
"SizeOfint" nillable=
"true" type=
"tns:SizeOfint" />
152 <xs:complexType name=
"Address">
154 <xs:element minOccurs=
"0" name=
"AddressLine" nillable=
"true" type=
"xs:string" />
155 <xs:element minOccurs=
"0" name=
"AdminDistrict" nillable=
"true" type=
"xs:string" />
156 <xs:element minOccurs=
"0" name=
"CountryRegion" nillable=
"true" type=
"xs:string" />
157 <xs:element minOccurs=
"0" name=
"District" nillable=
"true" type=
"xs:string" />
158 <xs:element minOccurs=
"0" name=
"FormattedAddress" nillable=
"true" type=
"xs:string" />
159 <xs:element minOccurs=
"0" name=
"Locality" nillable=
"true" type=
"xs:string" />
160 <xs:element minOccurs=
"0" name=
"PostalCode" nillable=
"true" type=
"xs:string" />
161 <xs:element minOccurs=
"0" name=
"PostalTown" nillable=
"true" type=
"xs:string" />
164 <xs:element name=
"Address" nillable=
"true" type=
"tns:Address" />
165 <xs:complexType name=
"ResponseBase">
167 <xs:element minOccurs=
"0" name=
"BrandLogoUri" nillable=
"true" type=
"xs:anyURI" />
168 <xs:element minOccurs=
"0" name=
"ResponseSummary" nillable=
"true" type=
"tns:ResponseSummary" />
171 <xs:element name=
"ResponseBase" nillable=
"true" type=
"tns:ResponseBase" />
172 <xs:complexType name=
"ResponseSummary">
174 <xs:element minOccurs=
"0" name=
"AuthenticationResultCode" type=
"tns:AuthenticationResultCode" />
175 <xs:element minOccurs=
"0" name=
"Copyright" nillable=
"true" type=
"xs:string" />
176 <xs:element minOccurs=
"0" name=
"FaultReason" nillable=
"true" type=
"xs:string" />
177 <xs:element minOccurs=
"0" name=
"StatusCode" type=
"tns:ResponseStatusCode" />
178 <xs:element minOccurs=
"0" name=
"TraceId" nillable=
"true" type=
"xs:string" />
181 <xs:element name=
"ResponseSummary" nillable=
"true" type=
"tns:ResponseSummary" />
182 <xs:simpleType name=
"AuthenticationResultCode">
183 <xs:restriction base=
"xs:string">
184 <xs:enumeration value=
"None" />
185 <xs:enumeration value=
"NoCredentials" />
186 <xs:enumeration value=
"ValidCredentials" />
187 <xs:enumeration value=
"InvalidCredentials" />
188 <xs:enumeration value=
"CredentialsExpired" />
189 <xs:enumeration value=
"NotAuthorized">
192 <EnumerationValue xmlns=
"http://schemas.microsoft.com/2003/10/Serialization/">7</EnumerationValue>
198 <xs:element name=
"AuthenticationResultCode" nillable=
"true" type=
"tns:AuthenticationResultCode" />
199 <xs:simpleType name=
"ResponseStatusCode">
200 <xs:restriction base=
"xs:string">
201 <xs:enumeration value=
"Success" />
202 <xs:enumeration value=
"BadRequest" />
203 <xs:enumeration value=
"ServerError" />
206 <xs:element name=
"ResponseStatusCode" nillable=
"true" type=
"tns:ResponseStatusCode" />
207 <xs:complexType name=
"ArrayOfGeocodeResult">
209 <xs:element minOccurs=
"0" maxOccurs=
"unbounded" name=
"GeocodeResult" nillable=
"true" type=
"tns:GeocodeResult" />
212 <xs:element name=
"ArrayOfGeocodeResult" nillable=
"true" type=
"tns:ArrayOfGeocodeResult" />
213 <xs:complexType name=
"GeocodeResult">
215 <xs:element minOccurs=
"0" name=
"Address" nillable=
"true" type=
"tns:Address" />
216 <xs:element minOccurs=
"0" name=
"BestView" nillable=
"true" type=
"tns:Rectangle" />
217 <xs:element minOccurs=
"0" name=
"Confidence" type=
"tns:Confidence" />
218 <xs:element minOccurs=
"0" name=
"DisplayName" nillable=
"true" type=
"xs:string" />
219 <xs:element minOccurs=
"0" name=
"EntityType" nillable=
"true" type=
"xs:string" />
220 <xs:element minOccurs=
"0" name=
"Locations" nillable=
"true" type=
"tns:ArrayOfGeocodeLocation" />
221 <xs:element xmlns:
q1=
"http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs=
"0" name=
"MatchCodes" nillable=
"true" type=
"q1:ArrayOfstring" />
224 <xs:element name=
"GeocodeResult" nillable=
"true" type=
"tns:GeocodeResult" />
225 <xs:complexType name=
"ArrayOfGeocodeLocation">
227 <xs:element minOccurs=
"0" maxOccurs=
"unbounded" name=
"GeocodeLocation" nillable=
"true" type=
"tns:GeocodeLocation" />
230 <xs:element name=
"ArrayOfGeocodeLocation" nillable=
"true" type=
"tns:ArrayOfGeocodeLocation" />